﻿using CommunityToolkit.Mvvm.ComponentModel;

namespace Enterprises.Wpf.Sample.Data.Model
{
    public class DemoInfoModel : ObservableObject
    {
        public string Key { get; set; }

        private string _title;

        public string Title
        {
            get => _title;
            set => SetProperty(ref _title, value);
        }

        private int _selectedIndex;

        public int SelectedIndex
        {
            get => _selectedIndex;

            set => SetProperty(ref _selectedIndex, value);
        }

        public bool IsGroupEnabled { get; set; }

        public IList<DemoItemModel> DemoItemList { get; set; }
    }

    public class DemoDataModel
    {
        public int Index { get; set; }

        public string Name { get; set; }

        public bool IsSelected { get; set; }

        public string Remark { get; set; }

        public DemoType Type { get; set; }

        public string ImgPath { get; set; }

        public List<DemoDataModel> DataList { get; set; }
    }

    public enum DemoType
    {
        Type1 = 1,
        Type2,
        Type3,
        Type4,
        Type5,
        Type6
    }

}
